Skip to content

feat: give the guide its own icon and site name in search results - #19

Merged
musa-kal merged 1 commit into
mainfrom
docs/search-name-and-icon
Nov 17, 2026
Merged

musa-kal merged 1 commit into
mainfrom
docs/search-name-and-icon

Conversation

@musa-kal

Copy link
Copy Markdown
Member

Intent

Musa wants the Potluck guide (docs.potluck.fermulate.com) to show a proper site name and its own logo in Google search results instead of the bare domain and no icon. Musa confirmed the name is 'Potluck guide' (matches the existing Starlight title). The guide used to share Potluck's app favicon; Musa asked for something unique that mixes the Potluck bowl with docs, so favicon.svg is now a recipe card tucked into the Potluck bowl (same bowl, lid line and shine paths as the app's PotMark, light colors with a prefers-color-scheme dark variant inside the SVG). Added favicon.ico (16/32/48, Google wants a multiple of 48px) via a head link with sizes 32x32 so browsers keep the SVG, and schema.org WebSite JSON-LD in the Starlight head config (name Potluck guide, alternateName Potluck docs and Potluck help, url https://docs.potluck.fermulate.com/, publisher Fermulate). The header SiteTitle mark is deliberately left as the plain bowl. npm run build passes with the link check. The PR should request Ferrin-Y and noorelmosrati as reviewers with a Credits line naming all three co-founders (Musa directed it); commits carry Co-authored-by trailers for Ferrin and Noor per Potluck decision D10. No AI attribution anywhere.

What Changed

  • Replaced public/favicon.svg (previously the app's pot icon) with a recipe card tucked into the Potluck bowl. It reuses the bowl, lid line, and shine shapes, and the SVG includes a prefers-color-scheme: dark variant.
  • Added public/favicon.ico and a <link rel="icon" href="/favicon.ico" sizes="32x32"> head entry in astro.config.mjs. Search engines can use the ICO, and browsers still pick the SVG.
  • Added schema.org WebSite JSON-LD to the Starlight head config: name Potluck guide, alternate names Potluck docs and Potluck help, url https://docs.potluck.fermulate.com/, publisher Fermulate. This gives Google a site name to show instead of the bare domain.

Credits: Musa Kaleem, Ferrin (Ferrin-Y), and Noor (noorelmosrati).

Risk Assessment

✅ Low: The change only touches static head metadata and icon assets. The JSON-LD values, the ICO frames (16/32/48, 32bpp) and the SVG paths (bowl, lid and shine copied exactly from SiteTitle) all match the stated intent, and the header mark is unchanged.

Testing

I built the site with npm run build (link check passed) and checked every built page's head: both icon links are on all 27 pages, and the parsed WebSite JSON-LD has exactly the intended name, alternateName, url and publisher. favicon.ico decodes to 16, 32 and 48 px entries. I served the site with astro preview and loaded it in Chromium: the browser fetched only favicon.svg, so the SVG still wins over the .ico. Light and dark screenshots show the recipe card in the bowl with the dark variant applied. The header mark is still the plain bowl with steam, and its bowl, lid and shine paths match the favicon. The commit has Co-authored-by trailers for Ferrin and Noor and no AI attribution. PR reviewers and the Credits line belong to the later PR phase and were not checked here. How Google actually renders the name and icon in search results can only be seen after deploy and crawl. I removed all transient build, dependency and browser artifacts from the worktree and stopped the preview server.

  • Live validation: ✅ go - 7 of 8 scenarios driven live against the product
Scenario Result Live Evidence
Maintainer runs npm run build: it succeeds and the link validator reports every internal link valid ✅ pass live build.log (exit 0, 'All internal links are valid', 27 pages built)
Every built guide page declares the WebSite JSON-LD Google reads for the site name (name 'Potluck guide', alternate names, url, publisher Fermulate) ✅ pass live head-and-ico-check.txt: 27/27 pages have one JSON-LD block, which parses to the exact intended fields; title and og:site_name are also 'Potluck guide'
favicon.ico is served with 16, 32 and 48 px icons (48 px multiple for Google) and is linked with sizes=32x32 ✅ pass live head-and-ico-check.txt ICONDIR: 3 entries, 16/32/48; curl via astro preview: 200 image/x-icon
A browser visiting the guide still uses favicon.svg rather than the new .ico ✅ pass live Playwright network log on http://localhost:4329/: only GET /favicon.svg (200); /favicon.ico was not requested
The new favicon.svg renders as a recipe card in the Potluck bowl, light by default and dark under prefers-color-scheme: dark ✅ pass live favicon-light.png and favicon-dark.png: in dark mode the card turns dark and the lid line turns light; legible at 16 to 128 px
The header SiteTitle mark stays the plain bowl (no recipe card) ✅ pass live Playwright DOM of header a.pl-title: steam, saffron dot, bowl, lid and shine paths with no card; visible top-left in both screenshots
Commit carries Co-authored-by trailers for Ferrin and Noor and no AI attribution ✅ pass live git log -1 4599864: author Musa Kaleem; trailers for Ferrin-Y and noorelmosrati; no AI lines
The PR requests Ferrin-Y and noorelmosrati as reviewers and includes a Credits line naming all three co-founders ⏸️ untested no The PR does not exist yet. The outer executor's PR phase creates it, and this test phase is not allowed to create or inspect it.
Evidence: Build log (npm run build with link validation)

> [email protected] build
> astro build

21:18:46 [content] Syncing content
21:18:47 [content] Synced content
21:18:47 [types] Generated 3.35s
21:18:47 [build] output: "static"
21:18:47 [build] mode: "static"
21:18:47 [build] directory: {run-worktree}\dist\
21:18:47 [build] Collecting build info...
21:18:47 [build] ✓ Completed in 15.30s.
21:18:47 [build] Building static entrypoints...
21:18:49 [vite] ✓ built in 2.49s
21:18:50 [vite] ✓ built in 478ms
21:18:50 [build] Rearranging server assets...

 generating static routes 
21:18:51 [WARN] [content] The collection "i18n" does not exist or is empty. Please check your content config file for errors.
21:18:51   ├─ /404.html21:18:51 [WARN] [content] Entry docs → 404 was not found.
 (+100ms) 
21:18:51   ├─ /account/index.html (+217ms) 
21:18:51   ├─ /balances/index.html (+33ms) 
21:18:51   ├─ /balances/settle-up/index.html (+50ms) 
21:18:51   ├─ /expenses/index.html (+51ms) 
21:18:51   ├─ /expenses/currencies/index.html (+30ms) 
21:18:51   ├─ /expenses/editing/index.html (+38ms) 
21:18:51   ├─ /expenses/receipts/index.html (+39ms) 
21:18:51   ├─ /expenses/recurring/index.html (+38ms) 
21:18:51   ├─ /expenses/search-and-totals/index.html (+33ms) 
21:18:51   ├─ /expenses/splits/index.html (+29ms) 
21:18:51   ├─ /faq/index.html (+23ms) 
21:18:51   ├─ /friends/index.html (+32ms) 
21:18:51   ├─ /getting-started/index.html (+34ms) 
21:18:52   ├─ /groups/index.html (+35ms) 
21:18:52   ├─ /groups/invites/index.html (+34ms) 
21:18:52   ├─ /groups/roles/index.html (+27ms) 
21:18:52   ├─ /groups/settings/index.html (+45ms) 
21:18:52   ├─ /index.html (+23ms) 
21:18:52   ├─ /notifications/index.html (+32ms) 
21:18:52   ├─ /plans/index.html (+30ms) 
21:18:52   ├─ /plans/availability/index.html (+29ms) 
21:18:52   ├─ /plans/best-time/index.html (+24ms) 
21:18:52   ├─ /plans/lock-in/index.html (+28ms) 
21:18:52   ├─ /plans/timeline/index.html (+26ms) 
21:18:52   ├─ /privacy-and-security/index.html (+27ms) 
21:18:52   ├─ /troubleshooting/index.html (+33ms) 
21:18:52 ✓ Completed in 1.39s.

21:18:52 [build] ✓ Completed in 5.22s.
21:18:52 [starlight:pagefind] Building search index with Pagefind...
21:18:55 [build] Waiting for integration "@astrojs/starlight", hook "astro:build:done"...
21:18:55 [starlight:pagefind] Found 27 HTML files.
21:18:55 [starlight:pagefind] Finished building search index in 3.55s.

 validating links 

╭─                             ─╮
· All internal links are valid. ·
╰─                             ─╯

21:18:56 [@astrojs/sitemap] `sitemap-index.xml` created at `dist`
21:18:56 [build] 27 page(s) built in 24.21s
21:18:56 [build] Complete!
Evidence: Built head + JSON-LD + ICO directory check

pages checked: 27 bad: 0 icon links: <link rel="icon" href="/favicon.ico" sizes="32x32"/>, <link rel="shortcut icon" href="/favicon.svg" type="image/svg+xml"/> JSON-LD: WebSite, name 'Potluck guide', alternateName ['Potluck docs','Potluck help'], url https://docs.potluck.fermulate.com/, publisher Organization Fermulate ICO count 3: 16x16, 32x32, 48x48 (32bpp)

pages checked: 27 bad: 0
index icon links: [
  '<link rel="icon" href="/favicon.ico" sizes="32x32"/>',
  '<link rel="shortcut icon" href="/favicon.svg" type="image/svg+xml"/>'
]
index JSON-LD: {
 "@context": "https://schema.org",
 "@type": "WebSite",
 "name": "Potluck guide",
 "alternateName": [
  "Potluck docs",
  "Potluck help"
 ],
 "url": "https://docs.potluck.fermulate.com/",
 "publisher": {
  "@type": "Organization",
  "name": "Fermulate",
  "url": "https://fermulate.com/"
 }
}
title: Split expenses and plan get-togethers | Potluck guide | og:site_name: Potluck guide
ICO reserved 0 type 1 count 3
 entry 0: 16x16 bpp 32 bytes 1128 BMP
 entry 1: 32x32 bpp 32 bytes 4264 BMP
 entry 2: 48x48 bpp 32 bytes 9640 BMP

Served guide in light mode with favicon.svg/favicon.ico overlay and header mark

Served guide in dark mode showing the SVG's prefers-color-scheme dark variant

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 7 of 8 scenarios driven live against the product
Scenario Result Live Evidence
Maintainer runs npm run build: it succeeds and the link validator reports every internal link valid ✅ pass live build.log (exit 0, 'All internal links are valid', 27 pages built)
Every built guide page declares the WebSite JSON-LD Google reads for the site name (name 'Potluck guide', alternate names, url, publisher Fermulate) ✅ pass live head-and-ico-check.txt: 27/27 pages have one JSON-LD block, which parses to the exact intended fields; title and og:site_name are also 'Potluck guide'
favicon.ico is served with 16, 32 and 48 px icons (48 px multiple for Google) and is linked with sizes=32x32 ✅ pass live head-and-ico-check.txt ICONDIR: 3 entries, 16/32/48; curl via astro preview: 200 image/x-icon
A browser visiting the guide still uses favicon.svg rather than the new .ico ✅ pass live Playwright network log on http://localhost:4329/: only GET /favicon.svg (200); /favicon.ico was not requested
The new favicon.svg renders as a recipe card in the Potluck bowl, light by default and dark under prefers-color-scheme: dark ✅ pass live favicon-light.png and favicon-dark.png: in dark mode the card turns dark and the lid line turns light; legible at 16 to 128 px
The header SiteTitle mark stays the plain bowl (no recipe card) ✅ pass live Playwright DOM of header a.pl-title: steam, saffron dot, bowl, lid and shine paths with no card; visible top-left in both screenshots
Commit carries Co-authored-by trailers for Ferrin and Noor and no AI attribution ✅ pass live git log -1 4599864: author Musa Kaleem; trailers for Ferrin-Y and noorelmosrati; no AI lines
The PR requests Ferrin-Y and noorelmosrati as reviewers and includes a Credits line naming all three co-founders ⏸️ untested no The PR does not exist yet. The outer executor's PR phase creates it, and this test phase is not allowed to create or inspect it.
  • npm ci then npm run build (exit 0, starlight-links-validator: all internal links valid, 27 pages)
  • Node script over built dist/**/*.html: checked that every page has the favicon.svg (image/svg+xml) link, the /favicon.ico sizes=32x32 link and exactly one JSON-LD block, and parsed that block
  • Node script decoding the dist/favicon.ico ICONDIR header (entry count and sizes)
  • astro preview --port 4329 plus curl: favicon.svg 200 image/svg+xml, favicon.ico 200 image/x-icon
  • Playwright Chromium loaded http://localhost:4329/; the network log showed which favicon the browser fetched
  • Playwright: read the header SiteTitle mark DOM
  • Playwright: an overlay rendering favicon.svg at 16/32/64/128 and favicon.ico at 16/32/48, screenshotted under prefers-color-scheme light and dark
  • git log -1 --format=%an%n%B 4599864: checked trailers and attribution
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@musa-kal
musa-kal merged commit cc77e94 into main Nov 17, 2026
2 checks passed
@musa-kal
musa-kal deleted the docs/search-name-and-icon branch November 17, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant